﻿@model IEnumerable<KCMS.BusinessLogic.Models.ProductImage>
@{
    ViewBag.Title = "Товары";
    var getByProductUrl = Url.Action("GetByProduct", "ProductImage");
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<p>
    @Html.DropDownList("products", null, new { @id = "drop-down-list-filter" })
    <script type="text/javascript">
        $(document).ready(function () {
            $("#drop-down-list-filter").live("change", function () {
                Filtr($(this), '@Url.Action("GetByProduct", "ProductImage")' + '?productId=', '#product-image-list');
            });
        });
    </script>
</p>
@*@using (Ajax.BeginForm("GetByProduct", "Product", new AjaxOptions { UpdateTargetId = "ajax-product-list", HttpMethod = "POST" }))
{
    <text>Артикул</text>
    @Html.TextBox("article")
   <input type="submit" value="Поиск" />
    *@
<div id="ajax-product-list">
    @Html.Partial("_ProductImageList", Model)
</div>
@*}*@